#ifndef NEC_FS_FILE_WRITER_HPP
#define NEC_FS_FILE_WRITER_HPP

#include "nec_fs/const.hpp"

#include <cstdio>
#include <cstring>
#include <string>
#include <vector>

namespace nec_fs {

class FileWriter {
public:
  FileWriter(const char *filename);

  int WriteStr(const char *line);

  size_t TotalSize();

  ~FileWriter();

private:
  FILE *f;
  size_t total_size_;
};

} // namespace nec_fs

#endif